<template>
  <div id="app">
    <!-- <img src="./assets/logo.png"> -->
    <router-link to="/HelloWorld">HelloWorld</router-link>
    <router-link to="/Compile">Compile</router-link>
    <router-link to="/Shopcar">Shopcar</router-link>
    <router-view/>
  </div>
</template>

<script>
import HelloWorld from './components/HelloWorld'
import Compile from './components/Compile'
import Shopcar from './components/Shopcar'
export default {
  name: 'App',
  components:{
HelloWorld, Compile,Shopcar
  },
  methods: {
    toindex() {
      this.$router.push("HelloWorld").catch((err) => {});
    },
    godev() {
      this.$router.push("HelloWorld").catch((err) => {});
    },
    goshop() {
      this.$router.push("Shopcar").catch((err) => {});
    }
  },
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* text-align: center; */
  color: #2c3e50;
  /* margin-top: 60px; */
}
.sub{
  float: left;
}
.add{
  float: right;
}
</style>
